#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {int i;
	int a[10] = { 0 };
	int sum=0;
	int sz = sizeof(a) / sizeof(a[0]);
	for (i = 0; i < sz; i++)
		scanf("%d", &a[i]);
	for (i = 0; i < sz; i++)
	{

		sum += a[i];
	}
	double avg = sum / sz * 1.0;
	printf("sum=%d,avg=%f", sum, avg);
	
	/*int i = 0;
	int a[3] = { 1,2,3 };
	int b[3] = { 4,5,6 };
	
	for (int i = 0; i < 3; i++)
	{
	
	int temp;
	temp = a[i];
	a[i] = b[i];
	b[i] = temp;
}
	for ( i = 0; i < 3; i++)
		printf("%d", a[i]);
	printf("\n");
	for ( i = 0; i < 3; i++)
		printf("%d", b[i]);*/
	return 0;
}